package com.lxj.student_security.service;

import com.lxj.student_security.common.CommonResult;
import com.lxj.student_security.entity.Permission;
import com.lxj.student_security.entity.vo.Tree;

public interface PermissionService {
    CommonResult searchAll(Permission permission);

    CommonResult edit(Permission permission);

    CommonResult add(Permission permission);

    CommonResult delete(Integer[] id);

    CommonResult findById(Integer id);

    Tree<Permission> tree();

    CommonResult findAll();

    Tree<Permission> getMenu(String username);
}
